package types

type ResultCode int

const (
	Success       = ResultCode(0)
	Failure       = ResultCode(1)
	NotAuthorized = ResultCode(400)
	OkMsg         = "Success"
	ErrorMsg      = "系统开小差了..."
	InvalidArgs   = "非法参数或参数解析失败"
	NoData        = "No Data"
)

type ResultVo struct {
	Code     ResultCode  `json:"code"`
	Page     int         `json:"page,omitempty"`
	PageSize int         `json:"page_size,omitempty"`
	Total    int64       `json:"total,omitempty"`
	Msg      string      `json:"msg,omitempty"`
	Data     interface{} `json:"data,omitempty"`
}
